.el-input__inner {
  font-size: $font-size;
  height: 30px !important;
  line-height: 30px !important;
}

el-input__inner:hover {
  border-color: $bg-e9 !important;
}
.el-input--medium .el-input__icon {
  line-height: 30px;
}
.el-tabs {
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.el-tabs--border-card {
  -webkit-box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.12), 0 0 0 0 rgba(0, 0, 0, 0.04) !important;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.12), 0 0 0 0 rgba(0, 0, 0, 0.04) !important;
  .el-tabs__content {
    padding: 12px 0;
  }
  .el-tab-pane {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  .el-tabs__header .el-tabs__item {
    font-size: $font-size;
    // margin-top: 10px;
    // &:first-child {
    //   margin-left: 10px;
    // }
    &:first-child:hover {
      color: $bg-33;
    }
    &:last-child:hover {
      color: $bg-33;
    }
    &.is-active {
      color: $bg-33;
      font-weight: bold;
      // margin-top: 10px;
      border-top: 1px solid $bg-dc;
      // border-radius: 5px 5px 0 0;
    }
    &.is-active:hover {
      color: $bg-33;
      font-weight: bold;
    }
  }
}
.el-tabs__content {
  scrollbar-width: thin;
}

// 面包屑样式
.el-breadcrumb__inner {
  a {
    font-size: $font-size;
  }

  span {
    font-size: $font-size;
  }
}

// 表格样式
.el-table thead th {
  background-color: $bg-f9;
}
.el-table th.is-leaf,
.el-table td {
  border-bottom: 1px solid #e9e9e9 !important;
}
.el-table--border th,
.el-table--border td {
  border-right: 1px solid #e9e9e9 !important;
}
.el-table--enable-row-hover .el-table__body tr:hover > td {
  background-color: #f9f9f9;
}
//设置高优先，以覆盖内联样式
.el-table > .el-table__fixed-right {
  height: 100% !important;
  right: -1px;
  border-right: 1px solid #d8d8d8;
}
// 表格边框缺失问题：其实是表格线条颜色加深问题，无法识别
.el-table__fixed::before,
.el-table__fixed-right::before {
  background-color: #d8d8d8;
}

//滚动条的滑块
::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
}
// .el-scrollbar__bar.is-horizontal {
//   height: 10px !important;
// }
::-webkit-scrollbar-thumb {
  background-color: $bg-c7;
  border-radius: 3px;
}
.el-table__body-wrapper {
  cursor: pointer;
}



// 显示子元素样式
.show-item {
  & .el-input--small .el-input__inner {
    border-color: $defaultBlue !important;
    box-sizing: border-box !important;
  }
  & .el-icon-arrow-up:before {
    color: $defaultBlue !important;
  }
  & input::-webkit-input-placeholder {
    /* WebKit browsers */
    color: $defaultBlue !important;
  }
  & input:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: $defaultBlue !important;
  }
  & input::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: $defaultBlue !important;
  }
  & input:-ms-input-placeholder {
    /* Internet Explorer 10+ */
    color: $defaultBlue !important;
  }
  & .el-button--small {
    border-color: $defaultBlue !important;
    span {
      color: $defaultBlue !important;
    }
  }
}

// 弹窗样式
.el-dialog__body {

  padding: 16px !important;
}

.device-attr-title {
  display: flex;
  align-items: center;
  padding-bottom: 15px;
  font-size: 14px;
  font-weight: bold;
  color: #606266;
}

.el-dialog__header {
  padding: 8px 16px !important;
  background-color: $bg-f6 !important;
  border-radius: 5px 5px 0 0 !important;
  border-bottom: 1px solid #e9e9e9 !important;

  .el-dialog__title {
    font-size: $font-size-15 !important;
    color: #202020 !important;
  }
  .el-dialog__headerbtn {
    top: 12px !important;
  }
}

.el-dialog__footer {
  padding: 12px;
  border-top: 1px solid #e9e9e9;
}

.dialog-default {
  .el-dialog {
    width: 900px;
    height: 600px;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
  }
  .el-dialog__body {
    flex: 1;
    overflow: hidden;
  }
}

.dialog-mini {
  & .el-dialog {
    width: 520px;
    height: 450px;
    display: flex;
    flex-direction: column;
  }
  & .el-dialog__body {
    flex: 1;
  }
}

.dialog-small {
  & .el-dialog {
    width: 1000px;
    height: 800px;
    display: flex;
    flex-direction: column;
  }
  & .el-dialog__body {
    flex: 1;
  }
}

.dialog-medium {
  & .el-dialog {
    width: 1200px;
    height: 800px;
    display: flex;
    flex-direction: column;
  }
  & .el-dialog__body {
    flex: 1;
  }
}

.dialog-large {
  & .el-dialog {
    width: 1700px;
    height: 800px;
    display: flex;
    flex-direction: column;
  }
  & .el-dialog__body {
    flex: 1;
  }
}

// .el-dialog{
//   margin:0 !important;
//   top:50% !important;
//   left:50% !important;
//   transform:translate(-50%,-50%) !important;
// }
.el-dialog__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 分割线 */
.el-divider--horizontal {
  margin: 8px 0 !important;
  background: 0 0 !important;
  border-top: 1px solid $bg-f6 !important;
}

/** 布局样式 */
.el-main {
  padding: 0 !important;
}

.leftMain {
  flex-grow: 0 !important;
  width: 250px !important;
  min-width: 250px !important;
  overflow: hidden;
  background-color: $bg-ff;
  height: calc(100vh - 102px);
  margin: 8px 0 10px 8px;
  padding: 0px;
  border: 1px solid $bg-dc;
  border-radius: 6px;
}

.rightMain {
  background-color: $bg-ff;
  height: calc(100vh - 102px);
  margin: 8px 10px 10px 8px;
  border: 1px solid $bg-dc;
  position: relative;
  overflow: hidden;
  border-radius: 6px;

  // white-space: nowrap;
}

.rightMain-tabs {
  position: relative;
  .el-tabs__header.is-top {
    margin: 0;
  }
  .el-tabs__nav-scroll {
    padding-left: 17px;
    height: 40Px;
  }
  .el-tabs__item {
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: $font-66;
  }
  .el-tabs__item.is-active {
    color: $defaultBlue;
  }
}

.el-tabs--border-card .el-tabs__header .el-tabs__item {
  font-size: 14px;
  line-height: 40px;
  height: 40px;
}

.leftMainSmall {
  width: 240px;
  background-color: $bg-ff;
  height: calc(43vh);
  // margin: 15px;
  margin-top: 15px;
  padding: 0px;
  border: 1px solid $bg-dc;
  border-right: 0px;
}

.rightMainSmall {
  background-color: $bg-ff;
  height: calc(43vh);
  margin-top: 15px;
  width: 70%;
  // margin: 15px 15px 15px 0;
  // border: 1px solid $bg-dc;
}

.bsMain {
  padding: 10px;
}

/** form表单 */
.el-form-item--small.el-form-item {
  margin-bottom: 6px !important;
}
// .el-form-item--small .el-form-item__label {
//   text-align: left !important;
// }
.el-form-item__label-wrap {
  box-sizing: border-box !important;
  -moz-box-sizing: border-box !important;
  padding: 0 !important;
  -moz-padding: 0 !important;
}
.el-form-item--small .el-form-item__content {
  line-height: 30px !important;
}
.el-form-item__label {
  font-size: 13px !important;
}
.el-form-item--small.el-form-item {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
}
.el-form--inline .el-form-item {
  // margin-right: 0px !important;
}
.el-form--inline {
  .el-form-item {
    // margin-right: 6px !important;
  }
}

/** 查询条件下的form表单 */
.opration {
  display: flex;
  flex-flow: row;
  justify-content: space-between;

  .oprationLeft {
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
  .oprationRight {
    margin-left: 10px;
    white-space: nowrap;
  }
  & .oprationLeft button {
    margin: 0 6px 0 0;
  }
  & .el-form-item--small.el-form-item {
    margin-bottom: 0;
  }
}

/** 时间筛选框大小 */
.el-date-editor.el-input,
.el-date-editor.el-input__inner {
  width: 120px;
}
.el-date-editor.el-input.el-date-editor--daterange,
.el-date-editor.el-input__inner.el-date-editor--daterange {
  width: 100%;
}

/** 进度条样式 */
.el-progress-bar__outer {
  border-radius: 0;
  background: #f5f5f5;
  height: 30px !important;
  color: #666;
}
.el-progress-bar__inner {
  border-radius: 0;
  background-color: $defaultBlue;
}
.el-progress-bar__innerText {
  width: 720px;
  text-align: center;
}

/** 弹窗样式 */
body {
  .el-message-box {
    width: 340px;
  }
  .el-message-box__message {
    text-align: center;
  }

  .el-message-box__input {
    padding-top: 0px;
    display: flex;
    justify-content: center;
    & .el-input--medium {
      width: 90%;
    }
  }
  .el-message-box__message p {
    line-height: 22px;
  }
  .el-message-box__content {
    padding: 0 15px 15px 15px;
  }
  .el-message-box__header {
    background: $bg-f9;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9e9e9;
  }
  .el-message-box__title {
    font-size: 16px;
    color: #202020;
  }

  /** 修改取消按钮在左 */
  .btn-custom-confirm {
    margin-left: -110px !important;
  }

  .el-message-box__btns {
    text-align: center;
    padding-bottom: 15px;
  }

  .el-message-box__btns button:nth-child(2) {
    margin-left: 10px;
  }
}

/** 添加模板弹窗样式 */
.template-body {
  display: flex;
  height: 708px;
  border: 1px solid $bg-e9;
  .compont {
    flex-grow: 1;
    float: left;
    position: relative;
    min-height: 400px;
    height: 600px;
    width: 100%;
    background-color: $bg-ff;
  }
}

.template-dialog {
  display: -webkit-flex;
  display: flex;
  flex-direction: unset;
  height: 608px;

  .el-dialog__body {
    padding: 0px;
  }

  .template-menu {
    width: 120px;
    overflow-y: auto;
    scrollbar-width: thin;
    border: 1px solid $bg-e9;
    border-top: 0;
    .template-title {
      display: flex;
      height: 48px;
      justify-content: center;
      align-items: center;
      font-weight: normal;
      background-color: $bg-f9;
      border-bottom: 1px solid $bg-e9;
      color: #202020;
    }
  }

  .template-main {
    flex-grow: 1;
    padding: 0 18px 18px 18px;
    .template-condition {
      display: flex;
      align-items: center;
      height: 48px;
      padding-top: 10px;
    }
    .template-body {
      display: flex;
      height: 608px;
      border: 1px solid $bg-e9;
    }
  }
  .template-attr {
    width: 280px;
    height: 608px;
    border: 1px solid $bg-e9;
    border-top: 0;
    .template-attr-title {
      display: flex;
      height: 48px;
      align-items: center;
      font-weight: 700;
      background-color: $bg-f9;
      border-bottom: 1px solid $bg-e9;
      padding-left: 10px;
    }
    .template-attr-name {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      height: 48px;
      border-bottom: 1px solid $bg-e9;
      margin-bottom: 10px;
      padding-left: 10px;
    }
    .template-attr-body {
      padding-left: 10px;
    }
  }
}
.count-tabs {
  .el-tabs__header {
    margin: 0 0 15px 30px;
  }
  .el-tabs__item {
    padding: 0px 60px 0 0;
  }
}
// ::-webkit-scrollbar { width:0 !important;}

.el-input-group__append,
.el-input-group__prepend {
  background-color: $bg-ff !important;
  padding: 6px 0 4px 8px !important;
}
.el-input-group--prepend .el-input__inner {
  padding-left: 0;
  border-left: 0;
}
.el-input__inner:focus {
  outline: none !important;
  border-color: $bg-e9 !important;
}

.el-input--suffix .el-input__inner {
  padding-right: 20px !important;
}
.el-tabs__nav-wrap::after {
  height: 1px !important;
}
.el-tabs__content {
  padding: 5px 20px 0 20px;
}
.main-tabs {
  & .el-tabs__nav {
    padding: 0 20px;
  }
  & .el-tabs__active-bar {
    left: 20px;
  }
}

.deviceDialog {
  & .el-dialog__body {
    padding: 0 !important;
  }
  & .el-tabs__nav-scroll {
    padding: 0 20px;
  }
  & .el-tabs__item {
    height: 50px !important;
    line-height: 50px;
  }
}

.el-button--small i {
  padding-right: 4px;
}
.el-button--small,
.el-button--small.is-round {
  padding: 7px 10px !important;
  font-size: 13px !important;
  border-radius: 3px !important;
  max-height: 30px !important;
  min-width: 50px !important;
}

.smini-btn {
  width: 40px !important;
  height: 22px !important;
  padding: 0 !important;
  text-align: center !important;
  line-height: 20px !important;
}

.el-dropdown .el-dropdown__caret-button::before {
  background: rgba(255, 255, 255, 0.2) !important;
}

.main-title {
  height: 40px;
  border-bottom: 1px solid $bg-e9;
  background: $bg-f9;
  font-size: $font-size-14;
  color: $bg-33;
  line-height: 40px;
  padding-left: 20px;
}

.el-table .cell {
  font-size: 12px !important;
  padding-right: 5px !important;
  font-weight: normal;
}
.el-tabs__nav-wrap::after {
  border-bottom: 1px solid #e9e9e9 !important;
}

.el-table--scrollable-x .el-table__body-wrapper {
  scrollbar-width: thin;
}
.el-table--scrollable-y .el-table__body-wrapper {
  scrollbar-width: thin;
}

.el-button-group > .el-button:last-child {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  min-width: 30px !important;
  padding: 0 !important;
  height: 30px !important;
}

.el-textarea .el-textarea__inner {
  // 然后找到对应的类名，在这里将拉伸去掉即可
  resize: none;
}
::v-deep .el-textarea__inner {
  line-height: 18px;
  margin-top: 2px;
}

.caretbtn i {
  color: #cccccc;
  margin: 0 !important;
}
.el-date-picker__header-label {
  font-size: 14px;
}

// 缩放错位：
body .el-table th.gutter {
  display: table-cell !important;
}
body .el-table colgroup.gutter {
  display: table-cell !important;
}
//  表格与内容变形
body .el-table--border th.gutter:last-of-type {
  display: block !important;
  width: 17px !important;
}

body table {
  width: 100% !important;
}
// 使表格兼容safari，不错位
body .el-table__body {
  width: 100%;
  table-layout: fixed !important;
}

// .el-drawer.ltr, .el-drawer.rtl {
//   margin-top: 50px;
// }

.el-tooltip__popper.is-dark {
  max-width: 800px !important;
}


.el-collapse{
  border:none !important;
}
.el-collapse-item__header{
  display: none;
}

.moreSearch{
  width: 440px !important;
  .el-dropdown-menu__item:focus, .el-dropdown-menu__item:not(.is-disabled):hover{
    background-color: #ffffff!important;
    color: #606266;
  }
}
.moreSearch .el-dropdown-menu__item{
  cursor: auto;
}


